using System;
using System.Collections.Generic;
using System.Text;
using Office = Microsoft.Office.Core;
using Outlook = Microsoft.Office.Interop.Outlook;
using System.Windows.Forms;

namespace Wicresoft.OmsClient
{
    class StateLight
    {        
        public static void Red()
        {
            Office.CommandBarButton btn = buttons()[2];
            _CurrentLight = "Red";
            btn.Visible = true;
        }

        public static void Green()
        {
            Office.CommandBarButton btn = buttons()[1];
            _CurrentLight = "Green";
            btn.Visible = true;
        }

        public static void Gray()
        {
            Office.CommandBarButton btn = buttons()[0];
            _CurrentLight = "Gray";
            btn.Visible = true;
        }

        private static string _CurrentLight;

        public static string CurrentLight
        {
            get 
            { 
                return StateLight._CurrentLight; 
            }
        }

        private static cbbtnButtons buttons;

        public static cbbtnButtons Buttons
        {
            get { return StateLight.buttons; }
            set { StateLight.buttons = value; }
        }
    }

    public delegate Office.CommandBarButton[] cbbtnButtons();
}
